<div class = "main-view"><!--最外层div-->
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">小区大使业绩</strong></div>
    <script>

        var fromDate = $('#startDateSelect').datepicker().on('changeDate', function (ev) {
            $scope.startDateSelect = ev.date.format('yyyy-MM-dd');
            $("#startDateSelect").val(ev.date.format('yyyy-MM-dd'));
        });

        var toDate = $('#endDateSelect').datepicker().on('changeDate', function (ev) {
            $scope.endDateSelect = ev.date.format('yyyy-MM-dd');
            $("#endDateSelect").val(ev.date.format('yyyy-MM-dd'));
        });
    </script>
    <form class="am-form-inline left-margin top-margin" role="form">
        <div class="am-form-group">
            <label class="left-margin">开始日期:</label>
            <input type="text" id="startDateSelect" ng-model="start" class="modal-input" size="16" data-date-format="yyyy-mm-dd">
            <label class="left-margin">结束日期：</label>
            <input type="text" id="endDateSelect"  ng-model="end" class="modal-input" size="16" data-date-format="yyyy-mm-dd">
        </div>
        <button id="search-target" data-am-modal="{target: '#loading'}" type="submit" class="am-btn am-btn-primary left-margin" ng-click="search()" data-target="cascad-search">搜索</button>
        <button id="export-target"   type="submit" class="am-btn am-btn-primary left-margin" ng-click="exportdata()">导出</button>
    </form>
    <br>

    <div id = "pagination" class = "pagination"></div>
    <div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
        <form class="am-form">
            <table class="am-table-striped am-table-hover table-main">
                <thead>
                <tr>
<!--                    <th class="table-check"><input type="checkbox" ng-click="allSelected()"></th>-->
                    <th class="table-title">类目（国内自营、国内标品、海淘标品、海淘非标品、国内非标品）</th>
                    <th class="table-title">订单号</th>
                    <th class="table-title">member_id</th>
                    <th class="table-title">下单日期时间</th>
                    <th class="table-title">链接发起人UID</th>
                    <th class="table-title">链接发起人昵称</th>
                    <th class="table-title">链接发起人手机号码</th>
                    <th class="table-title">链接发起人是否是小区大使</th>
                    <th class="table-title">购买用户UID</th>
                    <th class="table-title">购买用户昵称</th>
                    <th class="table-title">购买用户手机号码</th>
                    <th class="table-title">购买用户所在城市</th>
                    <th class="table-title">购买用户所在小区</th>
                    <th class="table-title">购买用户所在小区人数</th>
                    <th class="table-title">购买用户所在小区小区大使昵称</th>
                    <th class="table-title">购买用户所在小区小区大使手机号码</th>
                    <th class="table-title">订单金额</th>
                    <th class="table-title">订单数量</th>
                    <th class="table-title">拼团活动价</th>
                    <th class="table-title">sku_code</th>
                    <th class="table-title">sku_name</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="mtOrder in mtOrderList" id = "{{mtOrder._id}}">
               <!--     <td class="table-check"><input type="checkbox" class = "item-check"></td>-->
<!--                    <td ng-show="question.storetype=='init'">初始化贴</td>
                    <td ng-show="question.storetype=='op'">运营贴</td>-->
                    <td>{{mtOrder.itemSaleType}} &nbsp;
                    {{mtOrder.wavesSign}}&nbsp;
                    {{mtOrder.standard}}
                        {{mtOrder.user[0].mobilePhone}}
                    </td>
                    <td>{{mtOrder.order_id}}</td>
                    <td>{{mtOrder.member_id}}</td>
                    <td>{{mtOrder.order_time}}</td>
                    <td>{{mtOrder.share_user.encUserId}}</td>
                    <td>{{mtOrder.share_user.nickName}}</td>
                    <td>{{mtOrder.share_uhp}}</td>
                    <td>{{mtOrder.is_share_moderator? '是':'否'}}</td>
                    <td>{{mtOrder.order_user.encUserId}}</td>
                    <td>{{mtOrder.order_user.nickName}}</td>
                    <td>{{mtOrder.order_uhp}}</td>
                    <td>{{mtOrder.cityName}}</td>
                    <td>{{mtOrder.communityName}}</td>
                    <td>{{mtOrder.count}}</td>
                    <td>{{mtOrder.unickName}}</td>
                    <td>{{mtOrder.umobilePhone}}</td>
                    <td>{{mtOrder.total}}</td>
                    <td>{{mtOrder.quantity}}</td>
                    <td>{{mtOrder.total/mtOrder.quantity}}</td>
                    <td>{{mtOrder.sku_code}}</td>
                    <td>{{mtOrder.sku_name}}</td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>

    <div class = "left-margin">共<span id = 'page_number'>{{pageNumber}}</span>页 <span>{{count}}条数据</span></div>

</div>